package main.ui.models.combo;

import javax.swing.DefaultComboBoxModel;

public abstract class AbstractPairComboModel extends DefaultComboBoxModel
{
	private static final long serialVersionUID = 8026639126594824352L;

	protected class Pair
	{
		int id;
		String name;
		
		public Pair(int id, String name)
		{
			this.id = id;
			this.name = name;
		}
		
		public int hashCode()
		{
			return id;
		}
		
		public String toString()
		{
			return name;
		}
	}

}
